package controller;

import javax.ejb.Stateless;
import javax.ejb.LocalBean;

/**
 *
 * @author Guillaume
 */
@Stateless
@LocalBean
public class Converter {

    private double fromAmount;
    private double changeRate;
    private double convertAmount;

    public Converter() {
    }

    public void convert(double fromAmount, double changeRate) {
        this.fromAmount = fromAmount;
        this.changeRate = changeRate;
        this.convertAmount = fromAmount * changeRate;
        System.out.println("Converted Converter: "+ convertAmount);
    }

    public double getConvertAmount() {
        return convertAmount;
    }
}